package dao

import "gorm.io/gorm"

type Video struct {
	gorm.Model
	UserId int    `json:"userId" gorm:"type:int(10);not null;comment:'用户编号'"`
	File   string `json:"file" gorm:"type:varchar(255);not null;comment:'文件路径'"`
	Likes  int    `json:"likes" gorm:"type:int(10);default:0;comment:'点赞数量'"`
	Look   int    `json:"look" gorm:"type:int(10);default:0;comment:'观看数量'"`
}

type VideoLike struct {
	gorm.Model
	UserId  int `json:"userId" gorm:"type:int(10);not null;comment:'用户编号'"`
	VideoId int `json:"videoId" gorm:"type:int(10);not null;comment:'视频编号'"`
}

type VideoTopLooks struct {
	gorm.Model
	VideoId int    `json:"videoId"`
	Looks   string `json:"looks"`
}

type VideoTopLikes struct {
	gorm.Model
	VideoId int    `json:"videoId"`
	Likes   string `json:"likes"`
}
